package cn.tedu.em.common.exception;

import cn.tedu.em.common.restful.ResponseCode;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class EstateManagementServiceException extends RuntimeException{

    private ResponseCode responseCode;

    public EstateManagementServiceException(
            ResponseCode responseCode, String message){
        super(message);
        setResponseCode(responseCode);
    }

}
